package cn.javasm.config;
//
//import org.springframework.security.core.AuthenticationException;
//import org.springframework.security.web.AuthenticationEntryPoint;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author:27chen
 * @className:MyEntryPoint
 * @dat:2023/10/24 16:01
 * @version:0.1
 * @since:jdk11
 */
//public class MyEntryPoint  implements AuthenticationEntryPoint {
//    @Override
//    public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException {
//        // 重定向
//        httpServletResponse.sendRedirect("/login666.html");
//    }
//}
